package com.mymain.demo.mapper;

import com.mymain.demo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 操作数据库接口
 * Author : JiangLinHan
 * Date : 2019/4/9
 * Time : 17:26
 **/
@Repository
public interface UserMapper extends JpaRepository<User, String> {
    List<User> findAllByIdAfter(Integer num);

    List<User> findAll();

    void deleteById(Integer id);

    User findAllById(Integer id);

    User findUserByUsername(String username);
}
